﻿using System.Collections.Generic;
using Monkey.Warrenty.EntityModel;

namespace Monkey.Warrenty.Data.Interfaces
{
    public interface IRoleDao
    {
        List<Role> GetAll();
        void AddUsersToRole(int roleId, int[] userIds);
        void RemoveUsersFromRole(int roleId, int[] userIds);
        List<Role> GetRoleOfUser(int userId);

        List<Employee> GeGetEmployeesOfRole(int roleId);

        Role GetById(int roleId);

        void AssignToRole(int roleId, List<int> assignedIds);

        List<Role> GetRolesOfEmployee(int employeeId);
    }
}
